package org.soar.views.uicomponent;

import java.util.HashMap;
import java.util.Map;

import com.google.inject.Singleton;



@Singleton
public  class TransitionManager  {
	
	private Map<String, TransitionFunction> container = new HashMap();

	public void registerTransition(String transitionName, TransitionFunction transitionFunc){
		container.put(transitionName, transitionFunc);
	}
	
	public TransitionFunction getTransition(String transitionName){
		return container.get(transitionName);
	}

}
